const {config,gulp} = require("./gulp.config.js") ;
const {src,dest} = gulp;
const fileinclude = require('gulp-file-include');
exports.fileinclude = function(){
	console.log('HTML file start update.')
	return src(config.srcPath + 'temp/*.html')
		.pipe(fileinclude({
			prefix: '@@', //变量前缀 @@include
			basepath: config.srcPath + '_include', //引用文件路径
			indent: true //保留文件的缩进
		}))
		.pipe(gulp.dest(config.srcPath))
}
